home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
pcmini
/
form1.frm
next >
Wrap
Text File
|
1999-04-05
|
2KB
|
76 lines
VERSION 5.00
Object = "{FFF48193-EAF1-11D2-8B3D-000000000000}#5.0#0"; "PCM_INI.ocx"
Begin VB.Form Form1
Caption = "Sample INI"
ClientHeight = 1395
ClientLeft = 60
ClientTop = 345
ClientWidth = 3780
LinkTopic = "Form1"
ScaleHeight = 1395
ScaleWidth = 3780
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Caption = "Load"
Height = 495
Left = 2400
TabIndex = 3
Top = 720
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Save"
Height = 495
Left = 2400
TabIndex = 2
Top = 120
Width = 1215
End
Begin VB.TextBox Text1
Height = 285
Left = 120
TabIndex = 1
Top = 120
Width = 2055
End
Begin PCM_INI.PCMINI PCMINI1
Left = 120
Top = 720
_ExtentX = 873
_ExtentY = 873
End
Begin VB.Label Label1
Height = 255
Left = 120
TabIndex = 0
Top = 840
Width = 1935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
With PCMINI1
.INIFile = "MY.INI"
.Group = "TEST"
.ID = "GREATING"
.Value = Text1.Text
.Save
End With
End Sub
Private Sub Command2_Click()
With PCMINI1
.INIFile = "MY.INI"
.Group = "TEST"
.ID = "GREATING"
.Load
Label1.Caption = .Value
End With
End Sub